﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TakimListesi.ascx.cs"
    Inherits="HPDMAS.UserControls.TakimListesi" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="TakimID"
    DataSourceID="EntityDataSource1" AllowPaging="True">
    <PagerSettings PageButtonCount="15" />
    <AlternatingRowStyle BackColor="#FF9966" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Güncelle" />
                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="Vazgeç" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Edit"
                    Text="Düzenle" />
                &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Delete"
                    Text="Sil" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="TakimAdi">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TakimAdi") %>' Width="180px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Bind("TakimAdi") %>' Width="180px"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="LigID">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("LigID") %>' Width="40px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# Bind("LigID") %>' Width="40px"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="TakimAktif">
            <EditItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("TakimAktif") %>' Width="40px" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("TakimAktif") %>' Enabled="false"
                    Width="40px" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <HeaderStyle BackColor="Black" ForeColor="White" />
    <RowStyle Height="30px" />
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=HPDMASEntities"
    DefaultContainerName="HPDMASEntities" EnableDelete="True" EnableFlattening="False"
    EnableUpdate="True" EntitySetName="Takim">
</asp:EntityDataSource>
